import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const state={
    count:5,
    back: false,
    title:'HUMA 电影',
    barState: true
}
const mutations={
    increment (state) {
      state.count++
    },
    changebar (state){
        if(state.barState){
            state.barState = false
        }else{
            state.barState = true
        }
    },
    changeTitle(state,obj){
        state.title = obj.title
        state.back = obj.state
        state.barState = obj.footbar
    }
  }
export default new Vuex.Store({
	state,
    mutations
})